// 咪婴伴侣用户协议
export const getAgreementApi = <T>() => uni.http<T>({ url: 'blapp/v1/agreement' })

// 直播开播协议
export const getLiveAgreementApi = <T>() => uni.http<T>({ url: 'blapp/v1/about/live_open' })

// 人脸识别协议
export const getFaceAgreementApi = <T>() =>
    uni.http<T>({ url: 'blapp/v1/about/face_authentication' })

// 实名认证协议
export const getRealNameAgreementApi = <T>() => uni.http<T>({ url: 'blapp/v1/about/real_name' })

// 支付协议
export const getPayAgreementApi = <T>() => uni.http<T>({ url: 'blapp/v1/about/payment' })

// 咪婴伴侣管理协议
export const getManageAgreementApi = <T>() => uni.http<T>({ url: 'blapp/v1/about/management' })

// 咪婴伴侣账号注销协议
export const getLogoutAgreementApi = <T>() => uni.http<T>({ url: 'blapp/v1/about/account_cancell' })

// 商家入驻协议
export const getBusinessAgreementApi = <T>() =>
    uni.http<T>({ url: 'blapp/v1/about/merchant_settlement' })

// 下单协议
export const getOrderAgreementApi = <T>() => uni.http<T>({ url: 'blapp/v1/about/order' })

// 合作方协议
export const getPartnerAgreementApi = <T>() =>
    uni.http<T>({ url: 'blapp/v1/about/partner_settlement' })

// 接单协议
export const getReceiveAgreementApi = <T>() =>
    uni.http<T>({ url: 'blapp/v1/about/order_acceptance_pro' })

// 协议公共接口 > 需要传入url
export const getAgreementCommonApi = <T>(url?: any) => uni.http<T>({ url })

// 入驻指南 公共
export const getAgreementCommonApi1 = <T>(data?: any) => {
    return uni.http<T>({
        url: 'blapp/v1/about/guide',
        data
    })
}
